package com.woniu.woniu_bx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @Description 角色表
 * @Author Zhangjin
 * @Date 2022/8/27 15:16
 */
@Data
@TableName("bx_role")
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    //N:锁定,Y:未锁定
    private String status;
    private String description;
    // 权限列表
    @TableField(exist = false)
    private List<Perm> permList;
    // 菜单列表
    @TableField(exist = false)
    private List<Menu> menuList;
}
